package org.tzeng.html.dao;

/**
 * Created by tzeng on 2016-01-04.
 */

//增加默认值
public class MongodbConfig {

    private String host = "";
    private int maxConnetcionsNum = 5;
    private int maxBlockNum = 10;
    private int maxWaitTime = 1000*60;
    private int connetcTimeout = 1000*10;


    //private String dbName  = "urls_db";
    //private String collectionName = "urls_collection";

    public String getHost() {
        return host;
    }
    public void setHost(String host) {
        this.host = host;
    }
    public int getMaxConnetcionsNum() {
        return maxConnetcionsNum;
    }
    public void setMaxConnetcionsNum(int maxConnetcionsNum) {
        this.maxConnetcionsNum = maxConnetcionsNum;
    }
    public int getMaxBlockNum() {
        return maxBlockNum;
    }
    public void setMaxBlockNum(int maxBlockNum) {
        this.maxBlockNum = maxBlockNum;
    }
    public int getMaxWaitTime() {
        return maxWaitTime;
    }
    public void setMaxWaitTime(int maxWaitTime) {
        this.maxWaitTime = maxWaitTime;
    }
    public int getConnetcTimeout() {
        return connetcTimeout;
    }
    public void setConnetcTimeout(int connetcTimeout) {
        this.connetcTimeout = connetcTimeout;
    }
//	public String getDbName() {
//		return dbName;
//	}
//	public void setDbName(String dbName) {
//		this.dbName = dbName;
//	}
//	public String getCollectionName() {
//		return collectionName;
//	}
//	public void setCollectionName(String collectionName) {
//		this.collectionName = collectionName;
//	}

}

